package com.example;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
//@Controller
@RequestMapping("/api")
public class testController {
    @PostMapping("/testPort")
    public String testDemo(
            @RequestParam("message") String message
    ){
            System.out.println(message);
        return "后端收到了！";
    }
}
